<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <c:set var="ctx" value="${pageContext.request.contextPath }"></c:set>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="chenxing-technology">
    <meta name="keyword" content="">
    <link rel="shortcut icon" href="<%=request.getContextPath()%>/resources/img/favicon.ico">
    <title>樱桃管理-单据领取汇总</title>
    <!-- Bootstrap CSS -->    
    <link href="<%=request.getContextPath()%>/resources/css/bootstrap.min.css" rel="stylesheet">
    <!-- bootstrap theme -->
    <link href="<%=request.getContextPath()%>/resources/css/bootstrap-theme.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/resources/css/style.css" rel="stylesheet">
    <script src="<%=request.getContextPath()%>/resources/js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
     
  </head>

  <body>
  <!-- container section start -->
  <section id="container" class="">
         
      <jsp:include page="heads.jsp" />

      <!--sidebar start-->
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
              <ul class="sidebar-menu">                
                  <li class="sub-menu open">
                      <a href="javascript:;" class="">
                          <span>单据信息</span>
                          <span class="menu-arrow"></span>
                      </a>
                      <ul name="sub" class="sub">
                          <li><a class="" href="${ctx }/summary/summaryAdd">单据录入</a></li>                          
                          <li><a class="" href="${ctx }/summary/selectSum?pageNow=1">单据录入汇总</a></li>
                          <li><a class="" href="${ctx }/getTable/addGet">单据领取</a></li>
                          <li><a class="" href="${ctx }/getTable/showGet?pageNow=1">单据领取汇总</a></li>
                      </ul>
                  </li> 
				          <li class="sub-menu">
                      <a href="javascript:;" class="">
                          <span>商户录入</span>
                          <span class="menu-arrow"></span>
                      </a>
                      <ul name="sub" class="sub">
                          <li><a class="" href="${ctx }/meentry/addMeJsp">商户录入</a></li>                          
                          <li><a class="" href="${ctx }/meentry/showMeenAll?pageNow=1">商户录入汇总</a></li>
                          <li><a class="" href="${ctx }/meentry/orderlist">订单信息</a></li>
                      </ul>
                  </li>       
                  <li class="sub-menu">
                      <a href="${ctx }/meentry/farmerJsp" class="">
                          <span>农户录入</span>
                          <span class="menu-arrow arrow_carrot-right"></span>
                      </a>
                  </li>
                  <li class="sub-menu">
                      <a class="" href="${ctx }/meentry/settlement?pageNow=1">
                          <span>结算信息</span>
                          <span class="menu-arrow arrow_carrot-right"></span>
                      </a>
                  </li>
                 
              </ul>
               <div class="add-button text-center">
              	<a href="${ctx }/user/addUserJsp">添加账号</a>
              </div>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->
      
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper summary-table">            
              <!--overview start-->			        
			        <section class="panel">
			        	<table class="table table-bordered text-center">
                              <thead>
                              <tr>
                                  <th>册号</th>
                                  <th>商户名</th>
                                  <th>身份证号</th>
                                  <th>电话</th>
                                  <th>驾驶证号</th>
                                  <th>驾驶证照片</th>
                                  <th>时间</th>
                              </tr>
                              </thead>
                              <tbody>
                              <c:forEach var="get" items="${getList }">
	                              <tr>
	                                  <td>${get.gvolume }</td>
	                                  <td>${get.gsogoname }</td>
	                                  <td>${get.gidnumber }</td>
	                                  <td>${get.gphone }</td>
	                                  <td>${get.gdrivernum }</td>
	                                  <td><img src="${get.gdriverpic }"  width="90" height="50"/></td>
	                                  <td><fmt:formatDate value="${get.gcreatetime }" pattern="yyyy-MM-dd     HH:mm:ss"/></td>
	                              </tr>
                             </c:forEach>
                              </tbody>
                          </table>
                                                      
                              <div class="text-center">
                                  <ul class="pagination">
                                  		<li><a href="${ctx }/getTable/showGet?pageNow=1">首页</a></li>
			                            <li>
			                            	<c:if test="${page.pageNow >1 && page.pageNow < page.totalPageCount+1 }">
			                            		<a href="${ctx }/getTable/showGet?pageNow=${page.pageNow - 1}"> << </a>
			                            	</c:if>
			                            </li>
			                            <li><a href="${ctx }/getTable/showGet?pageNow=${page.pageNow}">第${page.pageNow}页</a></li>
			                            <li>
			                            	<c:if test="${page.pageNow >=1 && page.pageNow < page.totalPageCount }">
			                            		<a href="${ctx }/getTable/showGet?pageNow=${page.pageNow + 1}"> >> </a>
			                            	</c:if>
			                            </li>
			                            <li><a href="${ctx }/getTable/showGet?pageNow=${page.totalPageCount}">末页</a></li>
			                            <li><a>共${page.totalPageCount}页${page.totalCount}条</a></li>
                                  </ul>
                              </div>                             
                          
			        </section>
          </section>
      <!--main content end-->
     </section>
     <script type="text/javascript">
     $(function() {
     var menu = $(".sidebar-menu .sub-menu")
     menu.click(function() {
         i = $(this).index();
         $(this).addClass("open").siblings().removeClass("open");
         $(this).children(".sub").addClass("current");
         $(this).siblings().children(".sub").removeClass("current");
     })
     })
     </script>
  </body>
</html>
